﻿@using System.Data
@using ZoomLa.Common
@using ZoomLa.BLL
@using ZoomLa.Model
@using ZoomLa.BLL.Helper

@model ZoomLa.SQLDAL.SQL.PageSetting
@{
    Model.cols = 6;
    Model.url = "Pub_Data";
}
@functions{

}
<div id="EGV">
    @if (Model.itemCount < 1)
    {
        <div style="background-color:#f9f9f9;border:1px solid #ddd;padding:10px 15px;">没有信息</div>
    }
    else
    {
        <table class="table table-striped table-bordered">
            <tr>
                <td class="td_s">ID</td>
                <td class="td_l">互动标题</td>
                <td>互动内容</td>
                <td class="td_l">发表时间</td>
                <td class="td_md">操作</td>
            </tr>
            @foreach (DataRow dr in Model.dt.Rows)
            {
                <tr>
                    <td>@dr["ID"]</td>
                    <td>@ZoomLa.Common.BaseClass.Left(DataConverter.CStr(dr["PubTitle"]), 45)</td>
                    <td>@ZoomLa.Common.BaseClass.Left(DataConverter.CStr(dr["PubContent"]),45)</td>
                    <td>@DateHelper.ToDate(dr["PubAddTime"])</td>
                    <td>
                        <a href="Reply?pubid=@dr["Pubupid"]&id=@dr["ID"]"><i class="fa fa-reply"></i> 回复</a>
                        <a href="javascript:;" onclick="mvcpage.del({'ids':@dr["ID"],url:'pub_del?pubid=@dr["Pubupid"]'})"><i class="fa fa-trash-o"></i> 删除</a>
                    </td>
                </tr>
            }
            @Html.Partial("_page", Model)
        </table>
    }
</div>